<?php
$this->breadcrumbs=array(
	'Projects'=>array('index'),
	'Create',
);
$acc = UserModule::isAdmin();
if($acc == true ){
	$this->menu=array(
		array('label'=>UserModule::t('Manage Users'), 'url'=>array('/user/admin')),
		array('label'=>UserModule::t('Manage Profile Field'), 'url'=>array('/user/profileField/admin')),
		array('label'=>UserModule::t('List User'), 'url'=>array('/user')),
		array('label'=>'Manage Project', 'url'=>array('/user/project')),
		array('label'=>'Manage Content', 'url'=>array('/master/content')),
		array('label'=>UserModule::t('Logout'), 'url'=>array('/user/logout')),
	);
}else{
$this->menu=array(
		array('label'=>UserModule::t('Profile'), 'url'=>array('/user/profile')),
		array('label'=>UserModule::t('Edit'), 'url'=>array('/user/profile/edit')),
		array('label'=>UserModule::t('Change password'), 'url'=>array('/user/profile/changepassword')),
		array('label'=>'Project', 'url'=>array('/user/project')),
		array('label'=>UserModule::t('Logout'), 'url'=>array('/user/logout')),
	);
}
?>

<h1>Create Project</h1>
<hr/>
<?php 
$this->beginWidget('zii.widgets.CPortlet', array(
	'htmlOptions'=>array(
		'class'=>''
	)
));
$this->widget('bootstrap.widgets.TbMenu', array(
	'type'=>'pills',
	'items'=>array(
		array('label'=>'Create', 'icon'=>'icon-plus', 'url'=>Yii::app()->controller->createUrl('create'),'active'=>true, 'linkOptions'=>array()),
                array('label'=>'List', 'icon'=>'icon-th-list', 'url'=>Yii::app()->controller->createUrl('index'), 'linkOptions'=>array()),
	),
));
$this->endWidget();
?>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>